package com.payroll.framework.util;

/*******************************************************
 *                                                     *
 * AMS CONFIDENTIAL AND PROPRIETARY INFORMATION        *
 * (C) 2002 AMERICAN MANAGEMENT SYSTEMS, INCORPORATED  *
 * DO NOT COPY OR DISLCOSE                             *
 * ALL RIGHTS RESERVED                                 *
 *                                                     *
 *******************************************************
*/
import java.sql.*;
import javax.servlet.*;
import org.apache.log4j.*;
/**
 * Bean that contains error information.
 * @author: S Popovic
 */
public class ErrorBean implements java.io.Serializable {
	public int ID_EXC_MESSAGE = 0;
	public java.lang.String TX_USER_DS;
	private java.lang.String i_ClassAndMethodName;
	private java.lang.String i_FormattedMessage;
/**
 * ErrorBean constructor comment.
 */
public ErrorBean() {
	super();
}
/**
 * Returns the class and method name for the error.
 * @return The class and method name of where the error was thrown.
 */
public java.lang.String getI_ClassAndMethodName() {
	return i_ClassAndMethodName;
}
/**
 * Returns the formatted error message. (all substitutions have been spliced)
 * @return The formatted error for user display.
 */
public java.lang.String getI_FormattedMessage() {
	return i_FormattedMessage;
}
/**
 * Returns the message ID.
 * @return The message ID.
 */
public int getID_EXC_MESSAGE() {
	return ID_EXC_MESSAGE;
}
/**
 * Returns the un-formatted message from the TX_USER_DS column in the EXC_MESSAGE table.
 * @return The un-formatted error message.
 */
public java.lang.String getTX_USER_DS() {
	return TX_USER_DS;
}
/**
 * Sets the Class and Method name when the error occurred.
 * @param newI_ClassAndMethodName The class and method name of where the error occurred.
 */
public void setI_ClassAndMethodName(java.lang.String newI_ClassAndMethodName) {
	i_ClassAndMethodName = newI_ClassAndMethodName;
}
/**
 * The formatted error message that gets displayed to the user.
 * @param newI_FormattedError The formatted error message that is displayed to the user.
 */
public void setI_FormattedMessage(java.lang.String newI_FormattedMessage) {
	i_FormattedMessage = newI_FormattedMessage;
}
/**
 * Sets the error ID.
 * @param p_ID_EXC_MESSAGE The error ID from the ID_EXC_MESSAGE column.
 */
public void setID_EXC_MESSAGE(int p_ID_EXC_MESSAGE) {
	ID_EXC_MESSAGE = p_ID_EXC_MESSAGE;
}
/**
 * Sets the unformatted error message. (one without substitutions processed)
 * @param p_TX_USER_DS The unformatted error message.
 */
public void setTX_USER_DS(java.lang.String p_TX_USER_DS) {
	TX_USER_DS = p_TX_USER_DS;
}
}
